<%--
  Created by IntelliJ IDEA.
  User: bryant
  Date: 10/31/12
  Time: 2:34 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="code" uri="/WEB-INF/tld/code.tld" %>
<script type="text/javascript">
    $(document).ready(function(){
        $("#storage_removal").validationEngine('attach', {
            relative: true,
            overflownDIV:"#divOverflown",
            promptPosition:"bottomLeft"
        });
    });
</script>
<head>
    <style>
        .ui-combobox {
            position: relative;
            display: inline-block;
        }
        .ui-combobox-toggle {
            position: absolute;
            top: 0;
            bottom: 0;
            margin-left: -1px;
            padding: 0;
            /* adjust styles for IE 6/7 */
            *height: 1.7em;
            *top: 0.1em;
        }
        .ui-combobox-input {
            margin: 0;
            padding: 6px;
        }
    </style>
    <script>

        $(document).ready(function(){
            $("#storage_removal").validationEngine('attach', {
                relative: true,
                overflownDIV:"#divOverflown",
                promptPosition:"bottomLeft"
            });
        });
    </script>
</head>
</head>
<div id="main-content">
    <s:if test="hasActionMessages()">
        <div class="notification success png_bg"> <a href="#" class="close"><img src="<%=request.getContextPath()%>/images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
            <div> <s:actionmessage/></div>
        </div>
    </s:if>
    <s:if test="hasActionErrors()">
        <div class="notification error png_bg"> <a href="#" class="close"><img src="<%=request.getContextPath() %>/images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
            <div> <s:actionerror/></div>
        </div>
    </s:if>
    <div class="content-box">
        <div class="content-box-header" align="center">
            <h3>商品出库</h3>
            <ul class="content-box-tabs">
                <li><a href="#tab1" class="default-tab">输入表单</a></li>
            </ul>
            <div class="clear"></div>
            <div class="clear"></div>
        </div>
        <div class="content-box-content">
            <div class="tab-content default-tab" id="tab1">

                <form action="storage_removal" id="storage_removal" method="post">
                    <table>
                        <tr>
                            <td width="15%"><label>商品名称</label></td>
                            <td>
                                <s:select id="combobox" list="productList" name="storage.productId" headerKey="" headerValue="请选择" listKey="id" listValue="productName"/>
                            </td>
                        </tr>
                        <tr>
                            <td><label>数量</label></td>
                            <td><s:textfield name="storage.amount" cssClass="text-input small-input validate[required,custom[number]]"/></td>
                        </tr>
                        <tr>
                            <td colspan="2"><input class="button" align="center" type="submit" value="确定" /></td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>